package cn.itsource.pethome.xiaoceshi;

public class xiaoceshi {
    public static void main(String[] args) {
        System.out.println(test1(1866));
    }
    public static boolean test1(int x){
        int num =0;
        int num2 = x;
        if(num2<0){
            return false;
        }else if(num2%10==0){
            return false;}
         while (num2!=0){
             num=num*10+num2%10;
             num2/=10;


         }if(num==x){
             return true;
        }

        return false;
    }




}